package cn.memorynine.consumer.model.consumer.logup;

import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class IsAccountExistParam {

    /**
     * 手机号
     */
    @Pattern(regexp = "^1[0-9]{10}",message = "请输入正确的手机号")
    private String phone;

    /**
     * 邮箱
     */
    @Pattern(regexp = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$",message = "请输入正确的邮箱")
    private String email;
}
